package com.isoft.filelistener.dao;

import com.isoft.filelistener.entity.*;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface DfmeStlsDao {

    @Insert("insert into TEAM_03.META(SENDER,RECEIVER,SEQUENCE,SENDTIME,TYPE,STYP,META_ID) " +
            "values(#{metaData.sender},#{metaData.receiver},#{metaData.sequence},#{metaData.sendTime},#{metaData.type},#{metaData.styp},#{id})")
    int InsertStlsMeta(@Param("metaData") MetaData metaData, @Param("id") String id);

    @Insert("insert into TEAM_03.DFME_STLS_DFLT(FLID,FFID,FIDE,FATT,DFLT_ID) " +
            "values(#{dflt.flid},#{dflt.ffid},#{dflt.fide},#{dflt.fatt},#{id})")
    public int insertDflt(@Param("dflt") DfmeStlsDflt dflt,@Param("id") String id);

    @Insert("insert into TEAM_03.DFME_STLS_DFLT_STLS(STNO,CODE,ESTR,EEND,RSTR,CSSI,BTSC,DFLT_ID) " +
            "values(#{stnd.stno},#{stnd.code},#{stnd.estr},#{stnd.eend},#{stnd.rstr},#{stnd.cssi},#{stnd.btsc},#{id})")
    public int insertStls(@Param("stnd")DfmeStlsStnd stnd,@Param("id") String id);


}
